﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<GabageFactory.Models.stack_daily_water_info>" %>
<%@ Import Namespace="System.Collections.Generic" %>
<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	水位及水质（每日）
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <div id="dolphincontainer">
	    <div id="dolphinnav">
	        <ul class="top_tab">
                <li><a href="javascript:return(false);" class="current"><span>水位及水质</span></a></li>
                <li><a href="/Record/BackWater/<%=ViewData["id"] %>?date=<%=Model.date%>&factoryId=<%=ViewData["factoryId"] %>"><span>进浆及回水</span></a></li>
                <li><a href="/Record/Settle/<%=ViewData["id"] %>?date=<%=Model.date%>&factoryId=<%=ViewData["factoryId"] %>"><span>沉降及位移</span></a></li>
                <li><a href="/Record/Ardealite/<%=ViewData["id"] %>?date=<%=Model.date%>&factoryId=<%=ViewData["factoryId"] %>"><span>磷石膏堆积坝</span></a></li>
                <li><a href="/Record/Ditch/<%=ViewData["id"] %>?date=<%=Model.date%>&factoryId=<%=ViewData["factoryId"] %>"><span>截洪沟</span></a></li>
                <li><a href="/Record/PiezometerWell/<%=ViewData["id"] %>?date=<%=Model.date%>&factoryId=<%=ViewData["factoryId"] %>"><span>浸润线观测</span></a></li>
                <li><a href="/Record/PiezometerBase/<%=ViewData["id"] %>?date=<%=Model.date%>&factoryId=<%=ViewData["factoryId"] %>"><span>渗压观测</span></a></li>
                <li><a href="/Record/Drain/<%=ViewData["id"] %>?date=<%=Model.date%>&factoryId=<%=ViewData["factoryId"] %>"><span>导渗系统</span></a></li>
	        </ul>
	    </div>
	</div>

    <%
           bool result = (bool)ViewData["success"];
           if(result){ 
        %>
           <div class="tips_area">水位及水质更新成功</div>
        <%
        }
        %>

    <% using (Html.BeginForm())
    {%>
        <%= Html.ValidationSummary(true) %>
        <%= Html.HiddenFor(model => model.stack_id) %>
        <%= Html.HiddenFor(model => model.date) %>
        <%= Html.Hidden("factoryId", ViewData["factoryId"]) %>
            
    
    <table cellpadding="4" cellspacing="0" class="com_from_table" style="width:756px;">
        <tr>
            <th colspan="2">水位及水质（每日 - <%= Model.date.Year%>年<%=Model.date.Month%>月<%=Model.date.Day%>日）</th>
        </tr>

        <tr>
            <td class="lab" style="width:126px;">测量人员：</td>
            <td>
                <%= Html.DropDownList("tester_id", ViewData["users"] as List<SelectListItem>, "请选择", new { style = "width:150px" })%>
                <%= Html.ValidationMessageFor(model => model.tester_id)%>
            </td>
        </tr>
    </table>


    <fieldset class="tf_style">
        <legend>库区环境：</legend>

        <table cellpadding="4" cellspacing="0" class="com_from_table">
            <tr>
                <td class="lab" style="width:110px;">堆场一区水位：</td>
                <td style="width:130px;">
                    <%= Html.TextBoxFor(model => model.partition1_water_level, new { style = "width:50px" })%> m
                    <%= Html.ValidationMessageFor(model => model.partition1_water_level)%>
                </td>
                <td class="lab" style="width:80px;">PH值：</td>
                <td style="width:130px;">
                    <%= Html.TextBoxFor(model => model.partition1_water_ph, new { style = "width:50px" })%>
                    <%= Html.ValidationMessageFor(model => model.partition1_water_ph)%>
                </td>
                <td class="lab" style="width:100px;">堆场一区水量：</td>
                <td>
                    <%= Html.TextBoxFor(model => model.partition1_water_capacity, new { style = "width:50px" })%><span class="color00f"> 万m<sup>3</sup></span>
                    <%= Html.ValidationMessageFor(model => model.partition1_water_capacity)%>
                </td>
            </tr>
 
            <tr>
                <td class="lab">堆场二区水位：</td>
                <td>
                    <%= Html.TextBoxFor(model => model.partition2_water_level, new { style = "width:50px" })%> m
                    <%= Html.ValidationMessageFor(model => model.partition2_water_level)%>
                </td>
                <td class="lab">PH值：</td>
                <td>
                    <%= Html.TextBoxFor(model => model.partition2_water_ph, new { style = "width:50px" })%>
                    <%= Html.ValidationMessageFor(model => model.partition2_water_ph)%>
                </td>
                <td class="lab">堆场二区水量：</td>
                <td>
                    <%= Html.TextBoxFor(model => model.partition2_water_capacity, new { style = "width:50px" })%><span class="color00f"> 万m<sup>3</sup></span>
                    <%= Html.ValidationMessageFor(model => model.partition2_water_capacity)%>
                </td>
            </tr>

            <%
                stack_pool_daily_water_info[] poolWaterInfos = (stack_pool_daily_water_info[])ViewData["poolWaterInfos"];
                for (int i = 0; i < poolWaterInfos.Length; i++)
                {
            %>
            <tr>
                <td class="lab"><%if (poolWaterInfos.Length > 1){ %><%=(i + 1)%>号<%} %>调节水池水位：</td>
                <td>
                    <%= Html.TextBox("pool_water_level" + (i + 1), poolWaterInfos[i].pool_water_level, new { style = "width:50px" })%> m
                    <%= Html.ValidationMessage("pool_water_level" + (i + 1))%>
                </td>
                <td class="lab">PH值：</td>
                <td>
                    <%= Html.TextBox("pool_water_ph" + (i + 1), poolWaterInfos[i].pool_water_ph, new { style = "width:50px" })%>
                    <%= Html.ValidationMessage("pool_water_ph" + (i + 1))%>
                </td>
                <td class="lab">调节水池水量：</td>
                <td>
                    <%= Html.TextBox("pool_water_capacity" + (i + 1), poolWaterInfos[i].pool_water_capacity, new { style = "width:50px" })%><span class="color00f"> 万m<sup>3</sup></span>
                    <%= Html.ValidationMessage("pool_water_capacity" + (i + 1))%>
                </td>
            </tr>
            <%
                } 
            %>

        </table>


    </fieldset>


    
    <fieldset class="tf_style">
        <legend>周边环境：<%=Html.Hidden("poolNum", poolWaterInfos.Length)%></legend>
        <table cellpadding="4" cellspacing="0" class="com_from_table">
                      
            <tr>
                <td class="lab" style="width:110px;">上游河流水位：</td>
                <td style="width:130px;">
                    <%= Html.TextBoxFor(model => model.upstream_water_level, new { style = "width:50px" })%> m
                    <%= Html.ValidationMessageFor(model => model.upstream_water_level)%>
                </td>
                <td class="lab" style="width:80px;">PH值：</td>
                <td colspan="3">
                    <%= Html.TextBoxFor(model => model.upstream_water_ph, new { style = "width:50px" })%>
                    <%= Html.ValidationMessageFor(model => model.upstream_water_ph)%>
                </td>
            </tr>

            <tr>
                <td class="lab">总磷含量：</td>
                <td>
                    <%= Html.TextBoxFor(model => model.total_up_phosphorus, new { style = "width:50px" })%> 
                    <%= Html.ValidationMessageFor(model => model.total_up_phosphorus)%>
                    <span class="color00f">ppm</span>
                </td>
                <td class="lab">总氟含量：</td>
                <td style="width:132px;">
                    <%= Html.TextBoxFor(model => model.total_up_fluorin, new { style = "width:50px" })%> 
                    <%= Html.ValidationMessageFor(model => model.total_up_fluorin)%>
                    <span class="color00f">ppm</span>
                </td>
                <td class="lab" style="width:78px;">氨氮含量：</td>
                <td>
                    <%= Html.TextBoxFor(model => model.total_up_ammonia, new { style = "width:50px" })%>
                    <%= Html.ValidationMessageFor(model => model.total_up_ammonia)%>
                    <span class="color00f">ppm</span>
                </td>
            </tr>

        </table>

        <table cellpadding="4" cellspacing="0" class="com_from_table" style="margin-top:8px;">
                      
            <tr>
                <td class="lab" style="width:110px;">下游河流水位：</td>
                <td style="width:130px;">
                    <%= Html.TextBoxFor(model => model.downstream_water_level, new { style = "width:50px" })%> m
                <%= Html.ValidationMessageFor(model => model.downstream_water_level)%>
                </td>
                <td class="lab" style="width:80px;">PH值：</td>
                <td colspan="3">
                    <%= Html.TextBoxFor(model => model.downstream_water_ph, new { style = "width:50px" })%>
                <%= Html.ValidationMessageFor(model => model.downstream_water_ph)%>
                </td>
            </tr>  
            
            <tr>
                <td class="lab">总磷含量：</td>
                <td>
                    <%= Html.TextBoxFor(model => model.total_down_phosphorus, new { style = "width:50px" })%>
                    <%= Html.ValidationMessageFor(model => model.total_down_phosphorus)%>
                    <span class="color00f">ppm</span>
                </td>
                <td class="lab">总氟含量：</td>
                <td style="width:132px;">
                    <%= Html.TextBoxFor(model => model.total_down_fluorin, new { style = "width:50px" })%> 
                    <%= Html.ValidationMessageFor(model => model.total_down_fluorin)%>
                    <span class="color00f">ppm</span>
                </td>
                <td class="lab" style="width:78px;">氨氮含量：</td>
                <td>
                    <%= Html.TextBoxFor(model => model.total_down_ammonia, new { style = "width:50px" })%>
                    <%= Html.ValidationMessageFor(model => model.total_down_ammonia)%>
                    <span class="color00f">ppm</span>
                </td>
            </tr>
              
        </table>

        <table cellpadding="4" cellspacing="0" class="com_from_table" style="margin-top:8px;">
            <tr>
                <td class="lab" style="width:110px;">调节水池下游PH值：</td>
                <td style="width:130px;">
                    <%= Html.TextBoxFor(model => model.pool_ph, new { style = "width:50px" })%>
                    <%= Html.ValidationMessageFor(model => model.pool_ph)%>
                </td>
                <td class="lab" style="width:80px;">总磷含量：</td>
                <td style="width:110px;">
                    <%= Html.TextBoxFor(model => model.total_pool_phosphorus, new { style = "width:50px" })%>
                    <%= Html.ValidationMessageFor(model => model.total_pool_phosphorus)%>
                    <span class="color00f">ppm</span>
                </td>
                <td class="lab"  style="width:100px;">总氟含量：</td>
                <td>
                    <%= Html.TextBoxFor(model => model.total_pool_fluorin, new { style = "width:50px" })%> 
                    <%= Html.ValidationMessageFor(model => model.total_pool_fluorin)%>
                    <span class="color00f">ppm</span>
                </td>
            </tr>
              
        </table>

        <table cellpadding="4" cellspacing="0" class="com_from_table" style="margin-top:8px;">
                      
            <tr>
                <td class="lab" style="width:110px;">库尾集水池水位：</td>
                <td colspan="3">
                    <%= Html.TextBoxFor(model => model.tail_pool_water_level, new { style = "width:50px" })%> m
                    <%= Html.ValidationMessageFor(model => model.tail_pool_water_level)%>
                </td>
            </tr>
        </table>

    </fieldset>
    
    
    
    <fieldset class="tf_style">
        <legend>集水井：</legend>

        <table cellpadding="4" cellspacing="0" class="com_from_table" style="margin-top:8px;">    
            <tr>
                <td class="lab" style="width:110px;">集水井水位：</td>
                <td style="width:130px;">
                    <%= Html.TextBoxFor(model => model.catchpit_water_level, new { style = "width:50px" })%> m
                    <%= Html.ValidationMessageFor(model => model.catchpit_water_level)%>
                </td>
                <td class="lab" style="width:80px;">PH值：</td>
                <td>
                    <%= Html.TextBoxFor(model => model.catchpit_water_ph, new { style = "width:50px" })%>
                    <%= Html.ValidationMessageFor(model => model.catchpit_water_ph)%>
                </td>
            </tr>
            <tr>
                <td class="lab">抽水量：</td>
                <td>
                    <%= Html.TextBoxFor(model => model.pumpage, new { style = "width:50px" })%> m<sup>3</sup>/hr
                    <%= Html.ValidationMessageFor(model => model.pumpage)%>
                </td>
                
                <td class="lab">持续时间：</td>
                <td>
                    <%= Html.TextBoxFor(model => model.pump_time, new { style = "width:50px" })%> 
                    <%= Html.ValidationMessageFor(model => model.pump_time)%>hr
                </td>
            </tr>

        </table>

    </fieldset>
    
    

    <fieldset class="tf_style">
        <legend>膜底导渗系统：</legend>
        <table cellpadding="4" cellspacing="0" class="com_from_table2" style="margin-top:8px;">
            <tr>
                <td></td>
                <td style="text-align:center;">流量</td>
                <td style="text-align:center;">PH值</td>
                <td style="text-align:center;">水流状况</td>
                <td>描述</td>
            </tr>
            <tr>
                <td class="lab" style="width:110px;">导渗管A</td>
                <td style="width:130px;">
                    <select name="tube_a_flow" style=" width:100px;">
                        <option value="1" <%if (Model.tube_a_flow == 1){ %>selected<%} %>>满管</option>
                        <option value="0.875" <%if (Model.tube_a_flow == 0.875){ %>selected<%} %>>7/8管</option>
                        <option value="0.75" <%if (Model.tube_a_flow == 0.75){ %>selected<%} %>>6/8管</option>
                        <option value="0.625" <%if (Model.tube_a_flow == 0.625){ %>selected<%} %>>5/8管</option>
                        <option value="0.5" <%if (Model.tube_a_flow == 0.5){ %>selected<%} %>>4/8管</option>
                        <option value="0.375" <%if (Model.tube_a_flow == 0.375){ %>selected<%} %>>3/8管</option>
                        <option value="0.25" <%if (Model.tube_a_flow == 0.25){ %>selected<%} %>>2/8管</option>
                        <option value="0.125" <%if (Model.tube_a_flow == 0.125){ %>selected<%} %>>1/8管</option>
                        <option value="0" <%if (Model.tube_a_flow == 0){ %>selected<%} %>>断流</option>
                    </select></td>
                <td style="width:80px;"><%= Html.TextBoxFor(model => model.tube_a_ph, new { style = "width:50px" })%><%= Html.ValidationMessageFor(model => model.tube_a_ph)%></td>
                <td style="width:130px;">
                    <select name="tube_a_quality" style=" width:100px;">
                            <option value="1" <%if (Model.tube_a_quality == 1){ %>selected<%} %>>清澈</option>
                            <option value="2" <%if (Model.tube_a_quality == 2){ %>selected<%} %>>含土颗粒</option>
                            <option value="3" <%if (Model.tube_a_quality == 3){ %>selected<%} %>>浑浊</option>
                    </select>
                </td>
                <td>库区渗水</td>
            </tr>
            <tr>
                <td class="lab">导渗管B</td>
                <td>
                    <select name="tube_b_flow" style=" width:100px;">
                        <option value="1" <%if (Model.tube_b_flow == 1){ %>selected<%} %>>满管</option>
                        <option value="0.875" <%if (Model.tube_b_flow == 0.875){ %>selected<%} %>>7/8管</option>
                        <option value="0.75" <%if (Model.tube_b_flow == 0.75){ %>selected<%} %>>6/8管</option>
                        <option value="0.625" <%if (Model.tube_b_flow == 0.625){ %>selected<%} %>>5/8管</option>
                        <option value="0.5" <%if (Model.tube_b_flow == 0.5){ %>selected<%} %>>4/8管</option>
                        <option value="0.375" <%if (Model.tube_b_flow == 0.375){ %>selected<%} %>>3/8管</option>
                        <option value="0.25" <%if (Model.tube_b_flow == 0.25){ %>selected<%} %>>2/8管</option>
                        <option value="0.125" <%if (Model.tube_b_flow == 0.125){ %>selected<%} %>>1/8管</option>
                        <option value="0" <%if (Model.tube_b_flow == 0){ %>selected<%} %>>断流</option>
                    </select>
                </td>
                <td><%= Html.TextBoxFor(model => model.tube_b_ph, new { style = "width:50px" })%><%= Html.ValidationMessageFor(model => model.tube_b_ph)%></td>
                <td>
                    <select name="tube_b_quality" style=" width:100px;">
                            <option value="1" <%if (Model.tube_b_quality == 1){ %>selected<%} %>>清澈</option>
                            <option value="2" <%if (Model.tube_b_quality == 2){ %>selected<%} %>>含土颗粒</option>
                            <option value="3" <%if (Model.tube_b_quality == 3){ %>selected<%} %>>浑浊</option>
                    </select>
                </td>
                <td>库尾渗水</td>
            </tr>
            <tr>
                <td class="lab">导渗管C</td>
                <td>
                    <select name="tube_c_flow" style=" width:100px;">
                        <option value="1" <%if (Model.tube_c_flow == 1){ %>selected<%} %>>满管</option>
                        <option value="0.875" <%if (Model.tube_c_flow == 0.875){ %>selected<%} %>>7/8管</option>
                        <option value="0.75" <%if (Model.tube_c_flow == 0.75){ %>selected<%} %>>6/8管</option>
                        <option value="0.625" <%if (Model.tube_c_flow == 0.625){ %>selected<%} %>>5/8管</option>
                        <option value="0.5" <%if (Model.tube_c_flow == 0.5){ %>selected<%} %>>4/8管</option>
                        <option value="0.375" <%if (Model.tube_c_flow == 0.375){ %>selected<%} %>>3/8管</option>
                        <option value="0.25" <%if (Model.tube_c_flow == 0.25){ %>selected<%} %>>2/8管</option>
                        <option value="0.125" <%if (Model.tube_c_flow == 0.125){ %>selected<%} %>>1/8管</option>
                        <option value="0" <%if (Model.tube_c_flow == 0){ %>selected<%} %>>断流</option>
                    </select>
                </td>
                <td><%= Html.TextBoxFor(model => model.tube_c_ph, new { style = "width:50px" })%><%= Html.ValidationMessageFor(model => model.tube_c_ph)%></td>
                <td>
                    <select name="tube_c_quality" style=" width:100px;">
                            <option value="1" <%if (Model.tube_c_quality == 1){ %>selected<%} %>>清澈</option>
                            <option value="2" <%if (Model.tube_c_quality == 2){ %>selected<%} %>>含土颗粒</option>
                            <option value="3" <%if (Model.tube_c_quality == 3){ %>selected<%} %>>浑浊</option>
                    </select>
                </td>
                <td>库区渗水</td>
            </tr>
        </table>

    </fieldset>

    <fieldset class="tf_style">
        <legend>当日情况补充：</legend>

        <%=Html.TextAreaFor(model => model.descriptoin, new { cols="80", rows="5"})%>
    </fieldset>

    <div class="submit_btn_area" style="margin-left:142px;">
        <input type="submit" value="提 交" />
    </div>

    <% } %>

 
    
</asp:Content>
